// ==UserScript==
// @name ISP_Template
// @description Fix size of field with templates
// @author siberex@ispsystem.com
// @include https://my.ispsystem.com/manager/*
// ==/UserScript==

(function() {
if (window.location.hostname != 'my.ispsystem.com') return;

	opera.addEventListener('BeforeEvent.DOMContentLoaded', function(e) {
		if (typeof fr_qtemplate !== 'undefined') {
			if ('undefined' == typeof ujs_fr_qtemplate) {
				eval(
					fr_qtemplate.toString().replace("size='5'", "size='24'").replace('fr_qtemplate', 'ujs_fr_qtemplate')
				);
			}
			fr_qtemplate = ujs_fr_qtemplate;
		}
	}, true);
})();
